{extend name="layout"}
{block name="body"}
<section class="wld-content">
    <div class="page_title">员工管理</div>
    <div class="page_title_obj">

        <div class="title-seach">
        	<input type="hidden" name="status" id="status" value="{$Think.get.status}" />
            <input type="text" name="title" required lay-verify="required" placeholder="搜索"
                value="{$Think.get.title|default=''}"   class="wld-input-bg">
            <i class="iconfont iconfangdajing"></i>
        </div>
    </div>
    <div class="con_box layui-form">
        <div class="con_tag">
            <a href="{:url('index/staff/index')}"  {if empty($Think.get.status) ||  $Think.get.status eq 0} class="on" {/if}>全部</a>
            <a href="{:url('index/staff/index')}?status=1" {if $Think.get.status eq 1} class="on" {/if}>在职</a>
            <a href="{:url('index/staff/index')}?status=2" {if $Think.get.status eq 2} class="on" {/if}>离职</a>
            <div class="tag_right">
                <span class="tag_right_exp" data-title="减少险种" data-length="1" data-title-type="jy" data-modal-special='{:url("index/staff/downsizing")}'>减少险种</span>
                <span class="tag_right_exp" data-title="增加险种 " data-length="1" data-title-type="zy" data-modal-special='{:url("index/staff/increase")}'>增加险种</span>
                <span class="tag_right_exp" data-export-table data-export-url='{:url('index/staff/export')}'>导出所选项</span>
                <span class="tag_right_exp" data-export-table-all data-export-url='{:url('index/staff/export_all')}'>导出全部</span>
            </div>
        </div>
        <div class="con_table">
            <table class="layui-table table-all" lay-skin="nob" data-export-name="table">
                {notempty name='list'}
                <colgroup>
                    <col width="80">
                    <col width="172">
                    <col width="158">
                    <col width="260">
                    <col width="194">
                    <col width="118">
                    <col width="170">

                </colgroup>
                <thead>
                <tr>
                    <th><input  type="checkbox" name="" lay-filter="allChoose"  title="" lay-skin="primary"></th>
                    <th>员工编号</th>
                    <th>姓名</th>
                    <th>身份证号</th>
                    <th>手机号码</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                {/notempty}
                <tbody>
                {foreach $list as $key=>$vo}
                <tr>
                    <td><input type="checkbox" name="" title="" value="{$vo.increase_id|default='0'}" lay-skin="primary"></td>
                    <td>{$vo.person_code|default=''}</td>
                    <td>{$vo.name|default=''}</td>
                    <td>{$vo.id_number|default=''}</td>
                    <td>{$vo.mobile|default=''}</td>
                    <td>
                        {if $vo.status eq 1}<span class="color-green">在职</span>
                        {elseif $vo.status eq 2}<span class="color-red">解约</span>
                        {elseif $vo.status eq 3}<span class="color-red">离职</span>
                        {/if}
                    </td>
                    <td class="table_obj">
                    	<a href='{:url("index/staff/detail")}?id={$vo.increase_id}'>查看</a>
                    	{if $vo.status eq 1}
                        <a href='{:url("index/staff/subtract")}?id={$vo.increase_id}'>离职</a>
                        {else/}
                        <a href='{:url("index/staff/add")}?id={$vo.increase_id}'>入职</a>
                        {/if}
                    </td>
                </tr>
                {/foreach}
                </tbody>
            </table>
            
            {empty name='list'}
            <div class="con_blank">
                <img src="__ROOT__/static/index/img/con_blank_img.png">
                <p class="con_blank_title">暂无数据</p>
                <!-- <p class="con_blank_con">暂无数据，请手动添加</p> -->
            </div>
            
            {else}{$list|raw|default=''}{/empty}           
        </div>


    </div>
</section>
{/block}
{block name="script"}
<script>
    form.render();
    $(document).ready(function(){
        // $.msg.alert('- 服务器繁忙，请稍候再试！',"删除失败","del")
     
    })
    
</script>

{/block}